package com.inspur.incubator.service;

import java.util.List;
import java.util.Map;

import com.inspur.incubator.data.Menu;
import com.inspur.incubator.data.MhUser;
import com.inspur.incubator.data.Role;
import com.inspur.incubator.data.Users;
import com.inspur.incubator.data.zTreeNode;

public interface RoleService {
    

    Map<String,Object> getCurrentInfo(String account);
    
    List<String> getBankInfo(String index);
	
	public List showUser(Map map); //展示用户 ，通过角色等信息查询
	public int addUser(MhUser mu);	//添加用户
	public int deleteUser(Map map); //注销删除用户
	public int updateUser(Map map);
	
	//角色已经固定4个
	//public int deleteRole(Map map);  //删除角色
	//public int addRole(Map map);	//添加角色
	
	public Map show_Role_PERMISSION(String role_id); //展示功能权限
	public int update_Role_PERMISSION(Map map); //更新功能权限-- 先delete再insert
	
	public String updatePass(String account,String oldpass,String newpass);
	
	public List selectRole(String role_id);
	
	//用以生成表格
	public int  getTabletotalnum(Map map);
	public List<Map>  getTable(Map map);
	
	public String resetPass(String newpass,String account);
	
	public int cancelAccount(String account,String state);
	
	public Users showAccount(String account);
	
	public int updateAccount(Map map);

	List<Role> getRoles(Map map);

	List<zTreeNode> getMenus(String role_id);

	void insertRoleMenu(List<zTreeNode> menus, String role_id);

	List<Menu> getMemusInRole(String role_id);

	int addRole(Map<String, String> map);
}
